package yxy.game.pm2.bean.db.po;

import yxy.apple.db.ResultObjectBuilder;

/**
 * @author James
 * @date 2022/1/23 8:31
 **/
public class SoulPo {
    private String playerCode;
    private String code;
    private int dataId;
    private String hero;
    private String propertyIds;
    private int quality;
    private int refine;
    private String skillIds;
    private String rePropertyIds;
    private String reSkillIds;
    private String propertyLocks;
    private String skillLocks;
    private long updateTime;//更新时间

    public static ResultObjectBuilder<SoulPo> builder = rs -> {
        SoulPo soulPo = new SoulPo();
        soulPo.setPlayerCode(rs.getString("pCode"));
        soulPo.setCode(rs.getString("code"));
        soulPo.setDataId(rs.getInt("dataId"));
        soulPo.setHero(rs.getString("hero"));
        soulPo.setPropertyIds(rs.getString("propertyIds"));
        soulPo.setQuality(rs.getInt("quality"));
        soulPo.setRefine(rs.getInt("refine"));
        soulPo.setSkillIds(rs.getString("skillIds"));
        soulPo.setRePropertyIds(rs.getString("rePropertyIds"));
        soulPo.setReSkillIds(rs.getString("reSkillIds"));
        soulPo.setPropertyLocks(rs.getString("propertyLocks"));
        soulPo.setSkillLocks(rs.getString("skillLocks"));
        soulPo.setUpdateTime(rs.getLong("updateTime"));
        return soulPo;
    };

    public String getPlayerCode() {
        return playerCode;
    }

    public String getPropertyLocks() {
        return propertyLocks;
    }

    public void setPropertyLocks(String propertyLocks) {
        this.propertyLocks = propertyLocks;
    }

    public String getSkillLocks() {
        return skillLocks;
    }

    public void setSkillLocks(String skillLocks) {
        this.skillLocks = skillLocks;
    }

    public void setPlayerCode(String playerCode) {
        this.playerCode = playerCode;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public int getDataId() {
        return dataId;
    }

    public void setDataId(int dataId) {
        this.dataId = dataId;
    }

    public String getHero() {
        return hero;
    }

    public void setHero(String hero) {
        this.hero = hero;
    }

    public String getPropertyIds() {
        return propertyIds;
    }

    public void setPropertyIds(String propertyIds) {
        this.propertyIds = propertyIds;
    }

    public int getQuality() {
        return quality;
    }

    public void setQuality(int quality) {
        this.quality = quality;
    }

    public int getRefine() {
        return refine;
    }

    public void setRefine(int refine) {
        this.refine = refine;
    }

    public String getSkillIds() {
        return skillIds;
    }

    public void setSkillIds(String skillIds) {
        this.skillIds = skillIds;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    public String getRePropertyIds() {
        return rePropertyIds;
    }

    public void setRePropertyIds(String rePropertyIds) {
        this.rePropertyIds = rePropertyIds;
    }

    public String getReSkillIds() {
        return reSkillIds;
    }

    public void setReSkillIds(String reSkillIds) {
        this.reSkillIds = reSkillIds;
    }
}
